package com.yaha.controler.devices.pojo;

public class Device {

	private String name;
	private String ip;
	private String mac;
	private String port;

	private boolean isMdns;
	private boolean isDvb;

	/** 盒子平台型号 */
	private String hardware;
	/** 盒子型号 */
	private String model;
	/**
	 * <b>盒子类型devType :</b> <br>
	 * B 飞看盒子 <br>
	 * M 飞Phone <br>
	 * P 摸摸派 <br>
	 * T 飞TV <br>
	 * D Dongle <br>
	 * Y 呀哈
	 */
	private String devType;

	public Device() {
	}

	public Device(String name, String ip, String mac) {
		this.name = name;
		this.ip = ip;
		this.mac = mac;
	}

	/**
	 * 
	 * @param name
	 * @param ip
	 * @param mac
	 * @param isMdns
	 */
	public Device(String name, String ip, String mac, boolean isMdns) {
		this.name = name;
		this.ip = ip;
		this.mac = mac;
		this.isMdns = isMdns;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public String getMac() {
		return mac;
	}

	public void setMac(String mac) {
		this.mac = mac;
	}

	public boolean isMdns() {
		return isMdns;
	}

	public void setMdns(boolean isMdns) {
		this.isMdns = isMdns;
	}

	public String getPort() {
		return port;
	}

	public void setPort(String port) {
		this.port = port;
	}

	public String getHardware() {
		return hardware;
	}

	public void setHardware(String hardware) {
		this.hardware = hardware;
	}

	public String getModel() {
		return model;
	}

	public void setModel(String model) {
		this.model = model;
	}

	public boolean isDvb() {
		return isDvb;
	}

	public void setDvb(boolean isDvb) {
		this.isDvb = isDvb;
	}

	@Override
	public String toString() {
		String s = "name = " + name + " && ip = " + ip + " && mac = " + mac + " && port = " + port + " && isMdns = "
				+ isMdns + " && isDvb = " + isDvb + " && devType = " + devType;
		return s;
	}

	public String getDevType() {
		return devType;
	}

	public void setDevType(String devType) {
		this.devType = devType;
	}
}
